/*
 *  Copyright 2019-2023 Zheng Jie
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *  http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */
package me.zhengjie.modules.system.domain;

import cn.hutool.core.date.DateTime;
import io.swagger.v3.oas.annotations.Hidden;
import lombok.Data;
import cn.hutool.core.bean.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.bean.copier.CopyOptions;

import java.sql.Date;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import javax.validation.constraints.NotNull;

/**
 * @description /
 * @author yiwei.he
 * @date 2024-03-22
 **/
@Data
@TableName("tz_wx_user")
public class WxUser implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "主键")
    private Integer id;

    @ApiModelProperty(value = "用户唯一标识")
    private String openId;

    @ApiModelProperty(value = "昵称")
    private String nickName;

    @ApiModelProperty(value = "性别")
    private String gender;

    @ApiModelProperty(value = "城市")
    private String city;

    @ApiModelProperty(value = "省份")
    private String province;

    @ApiModelProperty(value = "国家")
    private String country;

    @ApiModelProperty(value = "头像")
    private String avatarUrl;

    @ApiModelProperty(value = "用户在开放平台的唯一标识")
    private String appId;

    @ApiModelProperty(value = "是否授权")
    private Integer isAuth;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "sessionkey")
    private String sessionkey;

    @ApiModelProperty(value = "是否为单招vip 【0：不是 1：是】")
    private Integer isVip;

    @ApiModelProperty(value = "推荐次数")
    private Integer recommendNum;

    @ApiModelProperty(value = "推广二维码")
    private String imgCode;

    @ApiModelProperty(value = "手机号")
    private String phone;

    @ApiModelProperty(value = "生日")
    private Date birthday;

    @ApiModelProperty(value = "是否为统招vip 【0：不是 1：是】")
    private Integer isTzVip;

    @ApiModelProperty(value = "统招智能荐校推荐次数")
    private Integer tzRecommendNum;

    @ApiModelProperty(value = "是否为专升本的VIP 【0：不是 1：是】")
    private Integer isZsbVip;

    @ApiModelProperty(value = "专升本智能荐校推荐次数")
    private Integer zsbRecommendNum;

    @ApiModelProperty(value = "推广码图片地址")
    private String imgCodeUrl;
    public void copy(WxUser source){
        BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
    }
}
